package com.ypj.rpc;

import com.ypj.rpc.annotation.Service;
import com.ypj.rpc.api.HelloObject;
import com.ypj.rpc.api.HelloService;
import lombok.extern.slf4j.Slf4j;

import java.lang.reflect.Method;

@Slf4j
@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public String hello(HelloObject obj) {
        log.info("接收到：{}",obj.getMessage());
        return "这是Impl方法";
    }
}
